import { Form } from "antd";
import React from "react";
import { PropertyEditorProps } from "./declare";
import { DataEditor } from "./editors/DataEditor";


export function usePropertyEditor(props: PropertyEditorProps) {

  
}

export function PropertyEditor(props: PropertyEditorProps) {

  return (
    <Form form={props.form}>
        <Form.Item
            name={props.defination.type}
          >
            <DataEditor
              {...props}
            />
          </Form.Item>
    </Form>
  )
}